home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD>
-
- <LINK REL="stylesheet" TYPE="text/css" HREF="%4css/default.css">
-
- <script language="Javascript">
- //LOCALIZATION STRINGS
- var _errNoSelected = "No license key selected";
- var _errNoNewKey = "No new license key entered";
- var _strUnlimited = "unlimited";
- var _strDeleteKey = "Are you sure you want to delete the license key: %s?";
- </script>
-
- <SCRIPT language="JavaScript">
- // Global variables
- var currentKeys = new Array();
- var cumulKeys;
- var startSelect = -1;
-
- // Structure to store key name and properties
- function KeyInfo (n, des, cl, unlock_cl, con, unlock_con, processors, unlock_p, reports, expires)
- {
- var UNLOCKED = _strUnlimited;
- this.name = n;
- this.descr = des;
-
- this.clients = unlock_cl ? UNLOCKED : cl ;
- this.concurrent = unlock_con ? UNLOCKED : con;
- this.processors = unlock_p ? UNLOCKED : processors;
- this.reports = reports;
- this.expires = expires;
-
- if(n != "cumul")
- {
- if(this.clients == 0)
- this.clients = "-";
- if(this.concurrent == 0)
- this.concurrent = "-";
- if(this.processors == 0)
- this.processors = "-";
- if(this.reports == 0)
- this.reports = "-";
- if(this.expires == "")
- this.expires = "-";
- }
- }
-
- // Assign license key values
- function getKeys()
- {
- // Assign key values
- %1
- }
-
- // Populate page
- function init()
- {
- startSelect = -1;
- getKeys();
-
- // Populate list box
- document.currentKeysForm.keyListBox.options[0] = null; // remove "filler"
- for (var i = 0; i < currentKeys.length; i++)
- document.currentKeysForm.keyListBox.options[i] = new Option(currentKeys[i].name + currentKeys[i].descr, currentKeys[i].name);
-
- // Display properties of selected key
- if (currentKeys.length > 0)
- startSelect = currentKeys.length - 1;
-
- if (startSelect >= 0)
- {
- document.currentKeysForm.keyListBox.selectedIndex = startSelect;
- displayKeyProperties();
- }
- else
- {
- document.propertiesForm.keyClientsDisp.value = 0;
- document.propertiesForm.keyConcurrentDisp.value = 0;
- document.propertiesForm.keyProcessorsDisp.value = 0;
- if(document.propertiesForm.keyReportsDisp)
- document.propertiesForm.keyReportsDisp.value = 0;
- document.propertiesForm.keyExpiresDisp.value = "";
- }
-
- // Populate cummulative values
- if (cumulKeys != null)
- {
- document.propertiesForm.cumulClientsDisp.value = cumulKeys.clients;
- document.propertiesForm.cumulConcurrentDisp.value = cumulKeys.concurrent;
- document.propertiesForm.cumulProcessorsDisp.value = cumulKeys.processors;
- if(document.propertiesForm.cumulReportsDisp)
- document.propertiesForm.cumulReportsDisp.value = cumulKeys.reports;
- }
-
- document.currentKeysForm.keyListBox.focus = true;
-
- if (document.layers)
- //netscape
- document.newKeyForm.keyTextBox.size = 40;
- else
- document.newKeyForm.keyTextBox.size = 46;
- }
-
- // Display current key properties (fired by keyListBox onChange)
- function displayKeyProperties()
- {
- var i = document.currentKeysForm.keyListBox.selectedIndex;
- if (i >= 0)
- {
- document.propertiesForm.keyClientsDisp.value = currentKeys[i].clients;
- document.propertiesForm.keyConcurrentDisp.value = currentKeys[i].concurrent;
- document.propertiesForm.keyProcessorsDisp.value = currentKeys[i].processors;
- if(document.propertiesForm.keyReportsDisp)
- document.propertiesForm.keyReportsDisp.value = currentKeys[i].reports;
- document.propertiesForm.keyExpiresDisp.value = currentKeys[i].expires;
- }
- else
- {
- document.propertiesForm.keyClientsDisp.value = "";
- document.propertiesForm.keyConcurrentDisp.value = "";
- document.propertiesForm.keyProcessorsDisp.value = "";
- if(document.propertiesForm.keyReportsDisp)
- document.propertiesForm.keyReportsDisp.value = "";
- document.propertiesForm.keyExpiresDisp.value = "";
-
- }
- }
-
- // Handle Remove Key button being pressed
- function onRemoveKey()
- {
- if (document.currentKeysForm.keyListBox.selectedIndex < 0)
- {
- alert (_errNoSelected);
- return;
- }
- document.currentKeysForm.index.value =
- document.currentKeysForm.keyListBox.selectedIndex;
-
- // Print out a confirm dialog
- if (!confirm(_strDeleteKey.replace(/%s/i,
- document.currentKeysForm.keyListBox.options[document.currentKeysForm.keyListBox.selectedIndex].text)))
- return;
-
- document.currentKeysForm.submit();
- }
-
- // Handle Add Key button being pressed
- function onAddKey()
- {
- if (document.newKeyForm.keyTextBox.value == "")
- {
- alert (_errNoNewKey);
- return;
- }
- document.newKeyForm.submit();
- }
-
- // Handle resize when running Netscape
- function onResizeNetscape()
- {
- if (navigator.appName == "Netscape")
- {
- init();
- }
- }
-
- window.onresize = onResizeNetscape;
-
-
- </SCRIPT>
- </HEAD>
-
-
- <BODY onload = "init();">
-
- <DIV ID="tooltip" STYLE="position:absolute;visibility:hidden;z-index:99;"></DIV>
- <SCRIPT SRC="%5js/helps.js"></SCRIPT>
- <SCRIPT SRC="%6js/tips.js"></SCRIPT>
-
- <b>%7</b>
-
- <p>
-
- Currently held license keys (Select a key to see its licensing information)
-
- <BR>
- <BR>
-
- <table border=1 CELLSPACING=0><tr><td>
- <TABLE border=0 cellspacing=5 cellpadding=0>
- <!----------- Entry form for new key ----------->
- <FORM name=newKeyForm action="%3" method="post">
- <TR>
- <TD class="list" colspan=1 nowrap>Add Key</TD>
-
- <TD class="list" colspan=1 align=right><INPUT name=keyTextBox></td>
-
- <TD colspan=1>
- <table border=0 cellpadding=0 align=center>
- <tr>
- <td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript:onAddKey();" onMouseOver="StRight(104);window.status='';return true;" onMouseOut="Ht()"> Add </a></div>
- </td>
- </tr>
- </table>
- </TD>
- </TR>
- </FORM>
-
- <!----------- Form for Current Keys ----------->
- <FORM name=currentKeysForm action="%2" method="post">
- <INPUT type=hidden name=index value=0>
- <tr>
- <TD class="list" colspan=2 width=420>
- <SELECT class="menuFormElement" name=keyListBox size=5 style="HEIGHT: 118px; WIDTH: 420px" onChange="displayKeyProperties();">
- <!-- Option is filler to get right width -->
- <OPTION>0M-0000M0M-MMM0M0M-00M0000 (Pxxxxxx + Mxxxxxxxxxx xxxx)</OPTION>
- </SELECT>
- </TD>
- <TD valign=top>
- <table border=0 cellpadding=0 align=center>
- <tr>
- <td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript:onRemoveKey();" onMouseOver="StRight(105);window.status='';return true;" onMouseOut="Ht()"> Delete </a></div>
- </td>
- </tr>
- </table>
- </TD>
- <TR>
- </FORM>
-
- <tr><td class="list" colspan=3 nowrap>(Changes take effect immediately - on click of Add or Delete)</td></tr>
- </table>
- </td></tr></table>
-
- <BR>
-
- <strong> Licensing Information </strong>
-
- <BR>
- <BR>
-
- <table cellspacing=5>
- <!----------- Display only form for Properties ----------->
- <FORM name=propertiesForm>
- <TR align=right>
- <TD class="list"> </TD>
- <TD class="list" align=center>Selected Key</TD>
- <TD class="list"> </TD>
- <TD class="list" align=center>Total Licenses</TD>
- <TD class="list"> </TD></TR>
- <TR align=right>
- <TD class="list">Named Users: </TD>
- <TD class="list"><INPUT name=keyClientsDisp size=12 readonly class=displayOnly></TD>
- <TD class="list"> </TD>
- <TD class="list"><INPUT name=cumulClientsDisp size=12 readonly class=displayOnly></TD>
- <TD class="list"> </TD></TR>
- <TR align=right>
- <TD class="list">Concurrent Users: </TD>
- <TD class="list"><INPUT name=keyConcurrentDisp size=12 readonly class=displayOnly></TD>
- <TD class="list"> </TD>
- <TD class="list"><INPUT name=cumulConcurrentDisp size=12 readonly class=displayOnly></TD>
- <TD class="list"> </TD></TR>
- <TR align=right>
- <TD class="list">Processors: </TD>
- <TD class="list"><INPUT name=keyProcessorsDisp size=12 readonly class=displayOnly></TD>
- <TD class="list"> </TD>
- <TD class="list"><INPUT name=cumulProcessorsDisp size=12 readonly class=displayOnly></TD>
- <TD class="list"> </TD>
- </TR>
-
- %8
-
- <TR align=right>
- <TD class="list">Expires: </TD>
- <TD class="list"><INPUT name=keyExpiresDisp size=12 readonly class=displayOnly></TD>
- </TR>
- </FORM>
- </TABLE>
-
- </BODY>
- </HTML>
-